package com.zpark.wxshop.service.impl;

import com.zpark.wxshop.Vo.CartVo;
import com.zpark.wxshop.Vo.VipcardVo;
import com.zpark.wxshop.entity.Vipcard;
import com.zpark.wxshop.mapper.VipcardMapper;
import com.zpark.wxshop.service.IVipcardService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author PJone
 * @since 2023-09-10
 */
@Service
public class VipcardServiceImpl extends ServiceImpl<VipcardMapper, Vipcard> implements IVipcardService {

    @Autowired
    private VipcardMapper vipcardMapper;

    @Override
    public List<VipcardVo> findBylapse(Integer uid, Integer lapse) {
        return vipcardMapper.findByLapse(uid, lapse);
    }

    @Override
    public VipcardVo findOneByCardId(Integer cardId) {
        return vipcardMapper.findOneByCardId(cardId);
    }
}
